<?php
use yii\helpers\Url;

$action = Yii::$app->controller->action->id;
?>

<div class="row">
    <div class="container lh30">
        <a class="topNav" href="<?= Url::to(['/system/site/index']) ?>"><img src="<?= Yii::getAlias('@web/backend/img/home/home.png') ?>" alt="首页"/>返回首页</a>
    </div>
</div>

<div class="row nav-brand-bg borB">
    <div class="container lh30">
        <ul class="nav nav-tabs">
            <li<?= $action == 'register' ? ' class="active"' : '' ?>><a href="<?= Url::to(['register']) ?>">服务登记</a></li>
            <li<?= $action == 'now' ? ' class="active"' : '' ?>><a href="<?= Url::to(['now']) ?>">正在服务</a></li>
            <li<?= $action == 'record' ? ' class="active"' : '' ?>><a href="<?= Url::to(['record']) ?>">服务记录</a></li>
            <li<?= $action == 'make' ? ' class="active"' : '' ?>><a href="<?= Url::to(['make']) ?>">预约记录</a></li>
        </ul>
    </div>
</div>